import { get, post, put, del } from '@/utils/request'

const VERSION = 'v1'

export default {
    // 查询屏幕
    queryList: params => get(VERSION, '/screen', params),
    // 查询所有屏幕
    queryAllList: params => get(VERSION, '/screen/list', params),
    // 新增屏幕
    addScreen: params => post(VERSION, '/screen', params),
    // 编辑屏幕
    editScreen: params => put(VERSION, '/screen', params),
    // 删除屏幕
    deleteScreen: params => del(VERSION, '/screen', params),
    // 屏幕标签树菜单
    // loadScreenTree: params => get(VERSION, '/terminal/group/list/screen', params),
    loadScreenTree: params => get(VERSION, '/terminal/common/group/list/screen', params),
    screenIndexList: params => get(VERSION, '/terminal/screen/tag/page', params),
    // 屏幕监控列表
    screenMonitorList: params => get(VERSION, '/screen/monitor/page', params),
    screenMonitorByID: params => get(VERSION, '/screen/monitor', params),
    screenMonitorByPlay: params => get(VERSION, '/screen/monitor/play', params),
    // 获取标签树
    loadTagTree: params => get(VERSION, '/terminal/common/tree', params),
    // 保存屏幕的标签
    addDeviceScrennTag:  params => put(VERSION, '/terminal/screen/tag', params),
    // 标签管理
    tagsList: params => get(VERSION, '/tag/page', params),
    addTag: params => post(VERSION, '/tag', params),
    editTag: params => put(VERSION, '/tag', params),
    delTag: params => del(VERSION, '/tag', params),
    // 标签类别管理
    tagTypesList : params => get(VERSION, '/tagcategory/list', params),
    addTagTypes : params => post(VERSION, '/tagcategory', params),
    editTagTypes : params => put(VERSION, '/tagcategory', params),
    deleteTagTypes : params => del(VERSION, '/tagcategory', params),
    // 终端布局
    loadDeviceLayout: params => get(VERSION, '/terminal/screen', params),
    editDeviceLayout: params => put(VERSION, '/terminal/screen', params),
    
    //物理屏监控列表
    physicalScreenList:params => get(VERSION,'/physicalscreen/monitor/page',params),
    //物理屏状态汇总
    physicalScreenStateSummary:params => get(VERSION,'/physicalscreen/monitor/count',params),

    // 物理屏设置列表
    physicalScreenSetList:params => get(VERSION,'/physicalscreen/settings/page',params),
    physicalScreenSet:params => post(VERSION,'/physicalscreen/settings',params),
    getPhysicalSetInfo:params => get(VERSION,'/physicalscreen/settings/get',params),
}